From: Florian Fainelli Date: Sun, 9 Aug 2009 10:19:47 +0000 (+0000) Subject: add support for the Pirelli AG226G board (#5337) X-Git-Url: http://git.openwrt.org/%22http:/oss.oetiker.ch/rrdtool//%22/%22http:/oss.oetiker.ch/rrdtool/%22?a=commitdiff_plain;h=885e3b2357b733c79c4bf2eace9cfbd9478e55d3;p=project%2Ffirmware-utils.git add support for the Pirelli AG226G board (#5337) SVN-Revision: 17190 --- diff --git a/src/imagetag.c b/src/imagetag.c index bd62b20..e93f5f4 100644 --- a/src/imagetag.c +++ b/src/imagetag.c @@ -219,6 +219,10 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, fseek(binfile, rootfsoff + rootfslen - fwaddr, SEEK_SET); fwrite(&deadcode, sizeof(uint32_t), 1, binfile); + /* Flush the binfile buffer so that when we read from file, it contains + * everything in the buffer + */ + fflush(binfile); /* Choose and compute the CRC32 that should be inserted in the tag */ if ( tagid && ( (strncmp(tagid, "bccfe", TAGID_LEN) == 0)) || ( strncmp(tagid, "bc300", TAGID_LEN) == 0)) {